<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var otherInboundEditUrl="{:U('Stock/otherInboundSave')}";//更新数据
	var getotherInboundUrl="{:U('Stock/get_otherInbound')}";
	var otherInboundDelUrl="{:U('Stock/otherInboundDel')}";
	var otherInboundExamineUrl="{:U('Stock/examineotherInbound')}";
	var otherInboundClearUrl="{:U('Stock/otherInboundClear')}";
	var otherInboundUndoUrl="{:U('Stock/otherInboundUndo')}";
	var booksInfoUrl="{:U('Depot/booksCateInfo')}";
	var otherInboundInfoUrl="{:U('Stock/otherInboundInfo')}";
	var erpId="{:I('id')}";	//erp企业对应id
	<!-- var otherInbound_order_no="{$order_no}";//单号 -->
	var otherInboundPushUrl="{:U('Stock/pushOtherInbound')}";//推送链接
	var otherinbound_ordernoUrl="{:U('Stock/ajax_otherinbound_orderno')}";//ajax入库单号
	var otherinbound_batchnoUrl="{:U('Stock/ajax_otherinbound_batchno')}";//ajax批次单号
	<!-- using('../../../default/js/otherInbound.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/otherInbound.js"></script>

	<table id="otherInboundDatagrid" toolbar="#otherInbound_tb"></table>
	<!-- 添加 -->
	<div id="otherInboundAddDialog" class="easyui-dialog" title="规则添加" style="width:500px;padding:10px 20px"
        closed="true" buttons="#otherInboundAddButtons"  modal="true">
         <form id="otherInboundAddForm" method="post" novalidate>
			<div class="fitem">
                <label>单号</label>
                <input name="order_no" id="otherInbound_order_no" class="easyui-textbox" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
			<div class="fitem">
                <label>批次号</label>
                <input name="batch_no" id="otherInbound_batch_no" class="easyui-textbox" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>申请部门</label>
                <select class="easyui-combobox" name="section_no" id="otherInbound_section_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="sectionlist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>制单人</label>
                <select class="easyui-combobox" name="people_make_no" id="otherInbound_people_make_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>申请人</label>
                <select class="easyui-combobox" name="people_purchasing_no" id="otherInbound_people_purchasing_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<div class="fitem">
                <label>往来单位</label>
                <select class="easyui-combobox" name="contacts_company_no" id="otherInbound_contactsCompany" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="contactsCompanylist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<!-- <div class="fitem"> -->
                <!-- <label>入库类别</label> -->
                <!-- <select class="easyui-combobox" name="bound_cate_code" id="otherInbound_bound_cate_code" style="width:170px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']"> -->
                    <!-- <volist name="boundcatelist" id="vo"> -->
                        <!-- <option value="{$vo['code']}">{$vo['name']}</option> -->
                    <!-- </volist> -->
                <!-- </select>    -->
            <!-- </div> -->
         </form>
    </div>
    <div id="otherInboundAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="otherInboundObj.add('{:U('Stock/otherInboundAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#otherInboundAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="otherInboundEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#otherInboundEditButtons"  modal="true">
        <form id="otherInboundEditForm" method="post" novalidate>          
            <div class="fitem">
                <label>单号</label>
				 <input name="id"  type="hidden" />
                <input name="order_no" class="easyui-textbox" data-options="readonly:true,required:true,disabled:true,delay:1000,height:30" />
            </div>
			<div class="fitem">
                <label>批次号</label>
				 <input name="id"  type="hidden" />
                <input name="batch_no" class="easyui-textbox" data-options="readonly:true,required:true,disabled:true,delay:1000,height:30" />
            </div>
            <div class="fitem">
                <label>申请部门</label>
                <select class="easyui-combobox" name="section_no" id="otherInbound_section_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="sectionlist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>制单人</label>
                <select class="easyui-combobox" name="people_make_no" id="otherInbound_people_make_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>申请人</label>
                <select class="easyui-combobox" name="people_purchasing_no" id="otherInbound_people_purchasing_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<div class="fitem">
                <label>往来单位</label>
                <select class="easyui-combobox" name="contacts_company_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="contactsCompanylist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<!-- <div class="fitem"> -->
                <!-- <label>入库类别</label> -->
                <!-- <select class="easyui-combobox" name="bound_cate_code" id="otherInbound_bound_cate_code" style="width:170px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']"> -->
                    <!-- <volist name="boundcatelist" id="vo"> -->
                        <!-- <option value="{$vo['code']}">{$vo['name']}</option> -->
                    <!-- </volist> -->
                <!-- </select>    -->
            <!-- </div> -->
        </form>
    </div>
    <div id="otherInboundEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="otherInboundObj.save('{:U('Stock/otherInboundSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#otherInboundEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="otherInbound_tb">
        <form id="otherInboundSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="otherInboundObj.showAll()">全部</a>     
			 单号:<input class="easyui-textbox" name="order_no" style="width:150px;height:30px;"> 
			 申请人:<select class="easyui-combobox" name="people_purchasing_no"  style="width:70px;height:30px;" >
						<volist name="personnellist" id="vo">
							<option value="{$vo['no']}">{$vo['name']}</option>
						</volist>
					</select> 
			 制单人:<select class="easyui-combobox" name="people_make_no"  style="width:70px;height:30px;" >
						<volist name="personnellist" id="vo">
							<option value="{$vo['no']}">{$vo['name']}</option>
						</volist>
					</select> 
			 <!-- 入库类别: -->
			 <!-- <select class="easyui-combobox" name="bound_cate_code" style="width:170px;height:30px;"> -->
                 <!-- <volist name="boundcatelist" id="vo"> -->
                     <!-- <option value="{$vo['code']}">{$vo['name']}</option> -->
                 <!-- </volist> -->
             <!-- </select>   -->
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<a href="javascript:void(0)" onclick="otherInboundObj.infoBar()" class="easyui-linkbutton" data-options="iconCls:'icon-information',plain:true">详情</a>
		
		<!-- <a href="javascript:void(0)" onclick="otherInboundObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a> -->
        <!-- <a href="javascript:void(0)" onclick="otherInboundObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a> -->
        <!-- <a href="javascript:void(0)" onclick="otherInboundObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a> -->
		<a href="javascript:void(0)" onclick="otherInboundObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<!-- <a href="javascript:void(0)" onclick="otherInboundObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a> -->
        <a href="javascript:void(0)" onclick="otherInboundObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="otherInboundObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<!-- <a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#otherInbound_mm1',iconCls:'icon-recycle'">回收站</a> -->
		<!-- <div id="otherInbound_mm1" style="width:150px;"> -->
			<!-- <div onclick="otherInboundObj.recycle()">查看</div> -->
			<!-- <div onclick="otherInboundObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div> -->
			<!-- <div onclick="otherInboundObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div> -->
		<!-- </div> -->

		<a href="javascript:void(0)" onclick="otherInboundObj.pushBar()" class="easyui-linkbutton" data-options="iconCls:'icon-door_in',plain:true">入库</a>
    </div>
    <!-- /搜索栏 -->
</body>